package com.yupi.picturebackend.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yupi.picturebackend.model.entity.Picture;
import com.yupi.picturebackend.model.entity.PictureFavour;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 伍立权
* @description 针对表【picture_favour(图片收藏)】的数据库操作Mapper
* @createDate 2025-04-20 17:06:01
* @Entity com.yupi.picturebackend.model.entity.PictureFavour
*/
public interface PictureFavourMapper extends BaseMapper<PictureFavour> {
    /**
     * 分页查询收藏的图片信息
     * @param page
     * @param queryWrapper
     * @param favourUserId
     * @return
     */
    Page<Picture> listFavourPictureByPage(IPage<Picture> page, @Param(Constants.WRAPPER) Wrapper<Picture> queryWrapper, long favourUserId);
}




